/**
 * 用户管理
 * */

export const userRoutes = [
  {
    path: "/404",
    component: () => import("@/views/404"),
    hidden: true,
  },
  // 普通登录页面
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index"),
    hidden: true,
  },

  {
    path: "/",
    component: () => import("@/layout"),
    redirect: "/dashboard",
    children: [
      {
        path: "dashboard",
        name: "Dashboard",
        component: () => import("@/views/dashboard/index"),
        meta: {
          title: "首页",
          icon: "dashboard",
          affix: true,
        },
      },



    ],
  },

  {
    path: "*",
    redirect: "/404",
    hidden: true,
  },
];

export default userRoutes;
